package chp02;

public class Test8 {
    public static void main(String[] args) {
        //强制转换和自动转换
        int num1 = 100;
        //从小的到大的 -> 自动转换
        // int:4个字节
        // double:8个字节
        double num2 = num1;
        System.out.println(num2);

        double num3 = 178.5;
        int num4 = (int) num3;
        System.out.println(num3);
        System.out.println(num4);
    }
}
